package com.example.dualscrenn;

import android.app.Presentation;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Display;

class MyPresentation extends Presentation {
    public MyPresentation(Context context, Display display) {
        super(context,display);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.presentation);

        DrawView dv = (DrawView)findViewById(R.id.drawView1);       //获取自定义的绘图视图
        dv.paint.setXfermode(null);                                 //取消擦除效果
        dv.paint.setStrokeWidth(1);                                 //初始化画笔的宽度
        dv.paint.setColor(Color.BLUE);
    }
}
